package com.xiaohao.ctdemo.dao;

import com.xiaohao.ctdemo.bean.Medicine;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 *
 * @author 小浩
 * @date 2018-08-31 16:25
 * @package com.xiaohao.ctdemo.dao
 * @description
 */
public interface MedicineDao extends JpaRepository<Medicine, Integer> {
    Medicine findById(int id);

    Medicine findByName(String name);

    List<Medicine> findMedicinesByIdIn(List<Integer> id);
}
